$(function() {
	$(".select_textdiv").click(function() {
		var that = $(this);
		if(that.hasClass("divfocus")) {
			that.removeClass('divfocus');
			that.parent().parent().siblings().find(".select_textdiv").removeClass('divfocus');
			that.parent().parent().siblings().find(".select_textul").slideUp();
			that.siblings(".select_textul").slideUp(100);
			$(".index-main .main-content .c-list .list-item").css('zIndex','0')
		} else {
			that.addClass("divfocus");
			that.parent().parent().siblings().find(".select_textdiv").removeClass('divfocus');
			that.parent().parent().siblings().find(".select_textul").slideUp(100);
			that.siblings(".select_textul").slideDown();
			$(".index-main .main-content .c-list .list-item").css('zIndex','-1')
		}
	});
	$(".select_first_ul>li>p").click(function() {
		$(this).parents().find('.select_textdiv').removeClass('divfocus');
		$(".select_second_ul").slideUp(100);
		$(this).parent("li").addClass("focus").siblings("li").removeClass("focus");
		var choose = $(this).text();
		var val = $(this).attr('data-type');
		$(this).parents(".select_textul").siblings(".select_textdiv").find(".s_text").text(choose);
		$(this).parents(".select_textul").siblings(".select_textdiv").find('input').val(val);
		$(this).parents(".select_textul").fadeOut(300);
		$(".index-main .main-content .c-list .list-item").css('zIndex','0')
		get_jdz_list();
	});
})